<{include file='public/head'}>

<div class="layui-body">	
	<div class="layui-tab layui-tab-brief" lay-filter="tab">
	  <ul class="layui-tab-title">
	    <li class="layui-this">菜单修改</li>
	  </ul>
	  <div class="layui-tab-content">
	  	<div class="layui-tab-item layui-show">
	  	 <form action="<{:url('/Menu/mod/id/'.$UrlParam.id.'')}>" method="post" class="layui-form">
                <input type="hidden" name="formcheck" value="<{$formcheck}>" > 
                <div class="layui-form-item">
				    <label class="layui-form-label">父菜单</label>
				    <div class="layui-input-block">
				      <select name="pcode" lay-verify="required">
				        <option value="0">顶级菜单 </option>
                       	 <{$menu_select}>
				      </select>
				    </div>
				 </div>
				 
				 <div class="layui-form-item">
                     <label class="layui-form-label">菜单名称</label>
                     <div class="layui-input-block">
                     	<input type="text" name="name" required  lay-verify="required" value="<{$menu->name}>"  placeholder="请输入菜单名称"  class="layui-input">
                     </div>
                </div>

				 <div class="layui-form-item">
                     <label class="layui-form-label">URL</label>
                     <div class="layui-input-block">
                     	<input type="text" name="url" value="<{$menu->url}>"  placeholder="请输入菜单URL"   class="layui-input">
                     </div>
                </div>
                
				<div class="layui-form-item">
                     <label class="layui-form-label">排序</label>
                     <div class="layui-input-block">
                     	<input type="text" name="sorting" value="<{$menu->sorting}>"   placeholder="请输入菜单排序" value="255"  class="layui-input">
                     </div>
                </div> 
                
                 <div class="layui-form-item">
                     <label class="layui-form-label">状态</label>
                     <div class="layui-input-block">
                     	<input type="radio" name="status" value="1" title="显示" <{if condition="$menu->status eq 1"}>checked="checked"<{/if}>>
						<input type="radio" name="status" value="0" title="隐藏" <{if condition="$menu->status eq 0"}>checked="checked"<{/if}>>
                     </div>
                </div>                               

                <div class="layui-form-item">
                     <label class="layui-form-label">桌面快捷图</label>
                     <div class="layui-input-block">
                     	<input type="radio" name="shortcut" value="1" title="是" <{if condition="$menu->shortcut eq 1"}>checked="checked"<{/if}>>
						<input type="radio" name="shortcut" value="0" title="否" <{if condition="$menu->shortcut eq 0"}>checked="checked"<{/if}>>
                     </div>
                </div>
                
 				<div class="layui-form-item">
                     <label class="layui-form-label">快捷图标</label>
                     <div class="layui-input-block">
                     	<input type="text" name="ico" value="<{$menu->ico}>"  placeholder="请输入菜单快捷图标"  class="layui-input">
                     </div>
                </div>  
                
                <div class="layui-form-item">
                     <label class="layui-form-label">功能按钮</label>
                     <div class="layui-input-block">
						<{volist name="$actions" id="value"}>
                     	<input type="checkbox" name="actions[]" value="<{$value->value}>"  <{if condition="in_array($value->value,$menu->actions)"}>checked="checked"<{/if}> title="<{$value->item}>">
                     	<{/volist}>
                     </div>
                </div>                 
                
               <div class="layui-form-item">
					 <div class="layui-input-block">
					    <button class="layui-btn" lay-submit>立即提交</button>
					    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
					    <{:get_btn_back()}>
					 </div>
			   </div>	  	 
	  	 </form>
	  	 </div>
	  </div>
	</div>
</div>
<{include file='public/foot'}>
